const path = require("path");
// const sqlite3 = require('sqlite3').verbose();
module.exports = {
	// 服务器配置
	SERVICE: {
		HOST: "",
		PORT: "3000",
	},
	// 数据库连接配置
	DATABASE: {
		HOST: "localhost",
		USER: "root",
		PASSWORD: "123456",
		DATABASE: "test",
		CONNECTION_LIMIT: 10,
	},
	// test: {
	//   storage: path.join(__dirname, './db/db.sqlite3'), // 文件路径
	//   host: 'localhost', // 地址
	//   dialect: 'sqlite', // 目标数据库种类
	//   dialectModule: sqlite3,
	//   logging: console.log,
	// },
	// 接口地址配置
	API: {
		// 项目接口前缀
		PROJECT_INTERFACE_PREFIX: "/api",
		// 后台接口前缀
		ADMIN_INTERFACE_PREFIX: "/adminApi",
		// 移动端接口前缀
		MOBILE_INTERFACE_PREFIX: "/mobileApi",
	},
	// 路径配置
	PATH: {
		UPLOAD_PATH: "public/upload",
	},
	// 限制条件配置
	LIMIT: {
		UPLOAD_IMG_SIZE: 200 * 1024 * 1024,
	},
};
